x86/64 compat: Replace hypervisor BUG_ON() with a cleaner hypercall failure.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 11 Apr 2008 08:10:58 +0000 (09:10 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 11 Apr 2008 08:10:58 +0000 (09:10 +0100)
commitfd1527b4d20375cd690c12b2bf88e7685aac9305
tree747711d090ffd7c7c3da209b08f9d4fbfb5fbfa3
parent8a7227082aab2b401a572d3438cf6e50f3fb545c
x86/64 compat: Replace hypervisor BUG_ON() with a cleaner hypercall failure.

While trying to run a 32-bit PV domU on a 64-bit hypervisor, I
triggered an assert in the hypervisor.  The assert dealt with the
maximum number of grants that a domU can have.  I made the hypervisor
a bit more graceful by returning an error rather than asserting.

Signed-off-by: Michael Abd-El-Malek <mabdelmalek@cmu.edu>
xen/common/compat/grant_table.c